package com.tro.mail.dao.entity;

import com.tro.common.util.mybatis.Page;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MailSendRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public MailSendRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(BigDecimal value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(BigDecimal value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(BigDecimal value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(BigDecimal value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<BigDecimal> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<BigDecimal> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("END_TIME is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("END_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("END_TIME =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("END_TIME <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("END_TIME >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("END_TIME >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("END_TIME <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("END_TIME <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("END_TIME in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("END_TIME not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("END_TIME between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("END_TIME not between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andErrMessageIsNull() {
            addCriterion("ERR_MESSAGE is null");
            return (Criteria) this;
        }

        public Criteria andErrMessageIsNotNull() {
            addCriterion("ERR_MESSAGE is not null");
            return (Criteria) this;
        }

        public Criteria andErrMessageEqualTo(String value) {
            addCriterion("ERR_MESSAGE =", value, "errMessage");
            return (Criteria) this;
        }

        public Criteria andErrMessageNotEqualTo(String value) {
            addCriterion("ERR_MESSAGE <>", value, "errMessage");
            return (Criteria) this;
        }

        public Criteria andErrMessageGreaterThan(String value) {
            addCriterion("ERR_MESSAGE >", value, "errMessage");
            return (Criteria) this;
        }

        public Criteria andErrMessageGreaterThanOrEqualTo(String value) {
            addCriterion("ERR_MESSAGE >=", value, "errMessage");
            return (Criteria) this;
        }

        public Criteria andErrMessageLessThan(String value) {
            addCriterion("ERR_MESSAGE <", value, "errMessage");
            return (Criteria) this;
        }

        public Criteria andErrMessageLessThanOrEqualTo(String value) {
            addCriterion("ERR_MESSAGE <=", value, "errMessage");
            return (Criteria) this;
        }

        public Criteria andErrMessageLike(String value) {
            addCriterion("ERR_MESSAGE like", value, "errMessage");
            return (Criteria) this;
        }

        public Criteria andErrMessageNotLike(String value) {
            addCriterion("ERR_MESSAGE not like", value, "errMessage");
            return (Criteria) this;
        }

        public Criteria andErrMessageIn(List<String> values) {
            addCriterion("ERR_MESSAGE in", values, "errMessage");
            return (Criteria) this;
        }

        public Criteria andErrMessageNotIn(List<String> values) {
            addCriterion("ERR_MESSAGE not in", values, "errMessage");
            return (Criteria) this;
        }

        public Criteria andErrMessageBetween(String value1, String value2) {
            addCriterion("ERR_MESSAGE between", value1, value2, "errMessage");
            return (Criteria) this;
        }

        public Criteria andErrMessageNotBetween(String value1, String value2) {
            addCriterion("ERR_MESSAGE not between", value1, value2, "errMessage");
            return (Criteria) this;
        }

        public Criteria andExecuteDayIsNull() {
            addCriterion("EXECUTE_DAY is null");
            return (Criteria) this;
        }

        public Criteria andExecuteDayIsNotNull() {
            addCriterion("EXECUTE_DAY is not null");
            return (Criteria) this;
        }

        public Criteria andExecuteDayEqualTo(String value) {
            addCriterion("EXECUTE_DAY =", value, "executeDay");
            return (Criteria) this;
        }

        public Criteria andExecuteDayNotEqualTo(String value) {
            addCriterion("EXECUTE_DAY <>", value, "executeDay");
            return (Criteria) this;
        }

        public Criteria andExecuteDayGreaterThan(String value) {
            addCriterion("EXECUTE_DAY >", value, "executeDay");
            return (Criteria) this;
        }

        public Criteria andExecuteDayGreaterThanOrEqualTo(String value) {
            addCriterion("EXECUTE_DAY >=", value, "executeDay");
            return (Criteria) this;
        }

        public Criteria andExecuteDayLessThan(String value) {
            addCriterion("EXECUTE_DAY <", value, "executeDay");
            return (Criteria) this;
        }

        public Criteria andExecuteDayLessThanOrEqualTo(String value) {
            addCriterion("EXECUTE_DAY <=", value, "executeDay");
            return (Criteria) this;
        }

        public Criteria andExecuteDayLike(String value) {
            addCriterion("EXECUTE_DAY like", value, "executeDay");
            return (Criteria) this;
        }

        public Criteria andExecuteDayNotLike(String value) {
            addCriterion("EXECUTE_DAY not like", value, "executeDay");
            return (Criteria) this;
        }

        public Criteria andExecuteDayIn(List<String> values) {
            addCriterion("EXECUTE_DAY in", values, "executeDay");
            return (Criteria) this;
        }

        public Criteria andExecuteDayNotIn(List<String> values) {
            addCriterion("EXECUTE_DAY not in", values, "executeDay");
            return (Criteria) this;
        }

        public Criteria andExecuteDayBetween(String value1, String value2) {
            addCriterion("EXECUTE_DAY between", value1, value2, "executeDay");
            return (Criteria) this;
        }

        public Criteria andExecuteDayNotBetween(String value1, String value2) {
            addCriterion("EXECUTE_DAY not between", value1, value2, "executeDay");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeIsNull() {
            addCriterion("FIRST_RUN_TIME is null");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeIsNotNull() {
            addCriterion("FIRST_RUN_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeEqualTo(Date value) {
            addCriterion("FIRST_RUN_TIME =", value, "firstRunTime");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeNotEqualTo(Date value) {
            addCriterion("FIRST_RUN_TIME <>", value, "firstRunTime");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeGreaterThan(Date value) {
            addCriterion("FIRST_RUN_TIME >", value, "firstRunTime");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("FIRST_RUN_TIME >=", value, "firstRunTime");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeLessThan(Date value) {
            addCriterion("FIRST_RUN_TIME <", value, "firstRunTime");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeLessThanOrEqualTo(Date value) {
            addCriterion("FIRST_RUN_TIME <=", value, "firstRunTime");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeIn(List<Date> values) {
            addCriterion("FIRST_RUN_TIME in", values, "firstRunTime");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeNotIn(List<Date> values) {
            addCriterion("FIRST_RUN_TIME not in", values, "firstRunTime");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeBetween(Date value1, Date value2) {
            addCriterion("FIRST_RUN_TIME between", value1, value2, "firstRunTime");
            return (Criteria) this;
        }

        public Criteria andFirstRunTimeNotBetween(Date value1, Date value2) {
            addCriterion("FIRST_RUN_TIME not between", value1, value2, "firstRunTime");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeIsNull() {
            addCriterion("LAST_RETRY_TIME is null");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeIsNotNull() {
            addCriterion("LAST_RETRY_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeEqualTo(Date value) {
            addCriterion("LAST_RETRY_TIME =", value, "lastRetryTime");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeNotEqualTo(Date value) {
            addCriterion("LAST_RETRY_TIME <>", value, "lastRetryTime");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeGreaterThan(Date value) {
            addCriterion("LAST_RETRY_TIME >", value, "lastRetryTime");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("LAST_RETRY_TIME >=", value, "lastRetryTime");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeLessThan(Date value) {
            addCriterion("LAST_RETRY_TIME <", value, "lastRetryTime");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeLessThanOrEqualTo(Date value) {
            addCriterion("LAST_RETRY_TIME <=", value, "lastRetryTime");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeIn(List<Date> values) {
            addCriterion("LAST_RETRY_TIME in", values, "lastRetryTime");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeNotIn(List<Date> values) {
            addCriterion("LAST_RETRY_TIME not in", values, "lastRetryTime");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeBetween(Date value1, Date value2) {
            addCriterion("LAST_RETRY_TIME between", value1, value2, "lastRetryTime");
            return (Criteria) this;
        }

        public Criteria andLastRetryTimeNotBetween(Date value1, Date value2) {
            addCriterion("LAST_RETRY_TIME not between", value1, value2, "lastRetryTime");
            return (Criteria) this;
        }

        public Criteria andProcessCountIsNull() {
            addCriterion("PROCESS_COUNT is null");
            return (Criteria) this;
        }

        public Criteria andProcessCountIsNotNull() {
            addCriterion("PROCESS_COUNT is not null");
            return (Criteria) this;
        }

        public Criteria andProcessCountEqualTo(Long value) {
            addCriterion("PROCESS_COUNT =", value, "processCount");
            return (Criteria) this;
        }

        public Criteria andProcessCountNotEqualTo(Long value) {
            addCriterion("PROCESS_COUNT <>", value, "processCount");
            return (Criteria) this;
        }

        public Criteria andProcessCountGreaterThan(Long value) {
            addCriterion("PROCESS_COUNT >", value, "processCount");
            return (Criteria) this;
        }

        public Criteria andProcessCountGreaterThanOrEqualTo(Long value) {
            addCriterion("PROCESS_COUNT >=", value, "processCount");
            return (Criteria) this;
        }

        public Criteria andProcessCountLessThan(Long value) {
            addCriterion("PROCESS_COUNT <", value, "processCount");
            return (Criteria) this;
        }

        public Criteria andProcessCountLessThanOrEqualTo(Long value) {
            addCriterion("PROCESS_COUNT <=", value, "processCount");
            return (Criteria) this;
        }

        public Criteria andProcessCountIn(List<Long> values) {
            addCriterion("PROCESS_COUNT in", values, "processCount");
            return (Criteria) this;
        }

        public Criteria andProcessCountNotIn(List<Long> values) {
            addCriterion("PROCESS_COUNT not in", values, "processCount");
            return (Criteria) this;
        }

        public Criteria andProcessCountBetween(Long value1, Long value2) {
            addCriterion("PROCESS_COUNT between", value1, value2, "processCount");
            return (Criteria) this;
        }

        public Criteria andProcessCountNotBetween(Long value1, Long value2) {
            addCriterion("PROCESS_COUNT not between", value1, value2, "processCount");
            return (Criteria) this;
        }

        public Criteria andRetryTimesIsNull() {
            addCriterion("RETRY_TIMES is null");
            return (Criteria) this;
        }

        public Criteria andRetryTimesIsNotNull() {
            addCriterion("RETRY_TIMES is not null");
            return (Criteria) this;
        }

        public Criteria andRetryTimesEqualTo(Long value) {
            addCriterion("RETRY_TIMES =", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesNotEqualTo(Long value) {
            addCriterion("RETRY_TIMES <>", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesGreaterThan(Long value) {
            addCriterion("RETRY_TIMES >", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesGreaterThanOrEqualTo(Long value) {
            addCriterion("RETRY_TIMES >=", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesLessThan(Long value) {
            addCriterion("RETRY_TIMES <", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesLessThanOrEqualTo(Long value) {
            addCriterion("RETRY_TIMES <=", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesIn(List<Long> values) {
            addCriterion("RETRY_TIMES in", values, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesNotIn(List<Long> values) {
            addCriterion("RETRY_TIMES not in", values, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesBetween(Long value1, Long value2) {
            addCriterion("RETRY_TIMES between", value1, value2, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesNotBetween(Long value1, Long value2) {
            addCriterion("RETRY_TIMES not between", value1, value2, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("START_TIME is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("START_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterion("START_TIME =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterion("START_TIME <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterion("START_TIME >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("START_TIME >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterion("START_TIME <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("START_TIME <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterion("START_TIME in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterion("START_TIME not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterion("START_TIME between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("START_TIME not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andSuccessIsNull() {
            addCriterion("SUCCESS is null");
            return (Criteria) this;
        }

        public Criteria andSuccessIsNotNull() {
            addCriterion("SUCCESS is not null");
            return (Criteria) this;
        }

        public Criteria andSuccessEqualTo(Short value) {
            addCriterion("SUCCESS =", value, "success");
            return (Criteria) this;
        }

        public Criteria andSuccessNotEqualTo(Short value) {
            addCriterion("SUCCESS <>", value, "success");
            return (Criteria) this;
        }

        public Criteria andSuccessGreaterThan(Short value) {
            addCriterion("SUCCESS >", value, "success");
            return (Criteria) this;
        }

        public Criteria andSuccessGreaterThanOrEqualTo(Short value) {
            addCriterion("SUCCESS >=", value, "success");
            return (Criteria) this;
        }

        public Criteria andSuccessLessThan(Short value) {
            addCriterion("SUCCESS <", value, "success");
            return (Criteria) this;
        }

        public Criteria andSuccessLessThanOrEqualTo(Short value) {
            addCriterion("SUCCESS <=", value, "success");
            return (Criteria) this;
        }

        public Criteria andSuccessIn(List<Short> values) {
            addCriterion("SUCCESS in", values, "success");
            return (Criteria) this;
        }

        public Criteria andSuccessNotIn(List<Short> values) {
            addCriterion("SUCCESS not in", values, "success");
            return (Criteria) this;
        }

        public Criteria andSuccessBetween(Short value1, Short value2) {
            addCriterion("SUCCESS between", value1, value2, "success");
            return (Criteria) this;
        }

        public Criteria andSuccessNotBetween(Short value1, Short value2) {
            addCriterion("SUCCESS not between", value1, value2, "success");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("TYPE is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("TYPE =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("TYPE <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("TYPE >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("TYPE >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("TYPE <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("TYPE <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("TYPE like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("TYPE not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("TYPE in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("TYPE not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("TYPE between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("TYPE not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("VERSION is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("VERSION is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(Long value) {
            addCriterion("VERSION =", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(Long value) {
            addCriterion("VERSION <>", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(Long value) {
            addCriterion("VERSION >", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(Long value) {
            addCriterion("VERSION >=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(Long value) {
            addCriterion("VERSION <", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(Long value) {
            addCriterion("VERSION <=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<Long> values) {
            addCriterion("VERSION in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<Long> values) {
            addCriterion("VERSION not in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionBetween(Long value1, Long value2) {
            addCriterion("VERSION between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(Long value1, Long value2) {
            addCriterion("VERSION not between", value1, value2, "version");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}